package demo07;

import java.util.Comparator;

public class Poker implements Comparable<Poker> {
    private int ID;
    private String name;


    public Poker(int ID, String name) {
        this.ID = ID;
        this.name = name;
    }

    public Poker() {
    }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(Poker poker) {
        return this.ID - poker.ID;
    }
}
